package com.yami.shop.search.common.constant;

import com.yami.shop.common.config.Constant;

/**
 * 配置缓存名字
 *
 * @author lhd
 * @date 2020/12/30
 */
public interface EsConstant {

    /**
     * 商品
     */
    String PROD_ID = "prodId";
    String PROD_NAME = "prodName";
    String PROD_NAME_ZH = "prodNameZh";
    String PROD_NAME_EN = "prodNameEn";
    String BRIEF = "brief";
    String BRIEF_ZH = "briefZh";
    String BRIEF_EN = "briefEn";
    String PRICE = "price";
    String ORI_PRICE = "oriPrice";
    String ACTIVITY_PRICE = "activityPrice";
    String ACTIVITY_ORIGINAL_PRICE = "activityOriginalPrice";
    String SCORE_PRICE = "scorePrice";
    String PIC = "pic";
    String IMGS = "imgs";
    String PROD_TYPE = "prodType";
    String INDEX_ID_PREFIX = "indexIdPrefix";
    String RECEIVER_GROUP_ID = "receiverGroupId";
    String MOLD = "mold";
    String SOURCE = "source";
    String PRE_SELL_STATUS = "preSellStatus";
    String SHOP_NAME = "shopName";
    String SHOP_ID = "shopId";
    String SHOP_TYPE = "shopType";
    String SHOP_SCORE = "shopScore";
    String STATUS = "status";
    String HAS_STOCK = "hasStock";
    String TOTAL_STOCKS = "totalStocks";
    String SOLD_NUM = "soldNum";
    String ACTUAL_SOLD_NUM = "actualSoldNum";
    String WATER_SOLD_NUM = "waterSoldNum";
    String COMMENT_NUM = "commentNum";
    String POSITIVE_RATING = "positiveRating";
    String DELIVERY_MODE = "deliveryMode";
    String DELIVERIES = "deliveries";
    String CREATE_TIME = "createTime";
    String UPDATE_TIME = "updateTime";
    String PUTAWAY_TIME = "putawayTime";
    String ACTIVITY_START_TIME = "activityStartTime";
    String BRAND = "brand";
    String SEQ = "seq";
    String IS_TOP = "isTop";
    String ACTIVITY_ID = "activityId";
    String PRIMARY_CATEGORY_ID = "primaryCategoryId";
    String SECONDARY_CATEGORY_ID = "secondaryCategoryId";
    String CATEGORY = "category";
    String SHOP_CATEGORY_ID = "shopCategoryId";
    String APP_DISPLAY = "appDisplay";
    String MAX_NUM = "maxNum";
    String CHAIN = "chain";
    String CIRCULATION = "circulation";

    /**
     * 虚拟商品字段
     */
    String DAW_NUM = "dawNum";
    String AUTHOR_NAME = "authorName";
    String AUTHOR_IMG = "authorImg";
    String IS_RIGHTS = "isRights";
    String ATTR = "attr";
    String LEVEL_ID = "levelId";

    /**
     * 品牌
     */
    String BRAND_ID = "brandId";
    String BRAND_IMG = "brandImg";
    String BRAND_NAME_ZH = "brandNameZh";
    String BRAND_LANG_LIST = "brandLangList";
    String BRAND_UNION_ID = BRAND + Constant.PERIOD + BRAND_ID;
    String BRAND_UNION_IMG = BRAND + Constant.PERIOD + BRAND_IMG;
    String BRAND_UNION_LANG_LIST = BRAND + Constant.PERIOD + BRAND_LANG_LIST;

    /**
     * 分类
     */
    String CATEGORY_ID = "categoryId";
    String CATEGORY_LANG_LIST = "categoryLangList";
    String CATEGORY_UNION_ID = CATEGORY + Constant.PERIOD + CATEGORY_ID;
    String CATEGORY_UNION_LANG_LIST = CATEGORY + Constant.PERIOD + CATEGORY_LANG_LIST;

    /**
     * 国际化
     */
    String PROD_LANG_LIST = "prodLangList";
    String LANG_UNION_PROD_NAME = "prodLangList." + PROD_NAME;
    String LANG_UNION_BRIEF = "prodLangList." + BRIEF;

    /**
     * 其余字段
     */
    String TOP_HITS_DATA = "top_hits_data";
    String SHOP = "shop";
    String SHOP_CATEGORY = "shopCategory";
    String PROD_LIST = "prodList";
    /**
     * 热词
     */
    String historyId = "historyId";
    String userId = "userId";
    String content = "content";
    String createTime = "createTime";
    String source = "source";
    /**
     * 指定返回字段
     */
    String[] BRAND_INCLUDE = {BRAND_UNION_ID, BRAND_UNION_IMG, BRAND_UNION_LANG_LIST};
    String[] CATEGORY_INCLUDE = {CATEGORY_UNION_ID, CATEGORY_UNION_LANG_LIST};
    String[] APP_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME_ZH,PROD_NAME_EN,BRIEF_ZH,BRIEF_EN,SHOP_ID,PRICE,PROD_TYPE,ORI_PRICE,ACTIVITY_PRICE,SCORE_PRICE,SOLD_NUM,COMMENT_NUM,POSITIVE_RATING,PIC,IMGS,ACTIVITY_ID,ACTIVITY_ORIGINAL_PRICE,ACTIVITY_START_TIME,SOURCE,MOLD,DAW_NUM,AUTHOR_NAME,IS_RIGHTS,ATTR,LEVEL_ID,AUTHOR_IMG,CHAIN,MAX_NUM,STATUS,CIRCULATION,INDEX_ID_PREFIX,RECEIVER_GROUP_ID};
    String[] SHOP_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME_ZH,PROD_NAME_EN,PIC,PRICE,ORI_PRICE,SCORE_PRICE,ACTUAL_SOLD_NUM,TOTAL_STOCKS,SEQ,STATUS,BRIEF_ZH,BRIEF_EN,IS_TOP,DELIVERY_MODE,PROD_TYPE,MOLD,SOURCE,INDEX_ID_PREFIX,CIRCULATION,RECEIVER_GROUP_ID};
    String[] PLATFORM_FETCH_SOURCE = {SHOP_ID,PROD_LANG_LIST,SHOP_NAME,PROD_ID,PROD_NAME_ZH,PROD_NAME_EN,PIC,PRICE,ORI_PRICE,SCORE_PRICE,ACTUAL_SOLD_NUM,TOTAL_STOCKS,SEQ,STATUS,BRIEF_ZH,BRIEF_EN,IS_TOP,MOLD,DELIVERY_MODE,WATER_SOLD_NUM,PROD_TYPE};
    String[] SIMPLE_FETCH_SOURCE = {PROD_ID,UPDATE_TIME};
    String[] RENOVATION_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME_ZH,PROD_NAME_EN,PROD_TYPE,STATUS,BRIEF_ZH,BRIEF_EN,SHOP_ID,PRICE,ORI_PRICE,ACTIVITY_PRICE,SCORE_PRICE,SOLD_NUM,PIC,ACTIVITY_ID,ACTIVITY_ORIGINAL_PRICE,SHOP_NAME,TOTAL_STOCKS,ACTIVITY_START_TIME};
    String[] EXCEL_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME_ZH,PROD_NAME_EN,PROD_TYPE,STATUS,BRIEF_ZH,BRIEF_EN,SHOP_NAME};

    String[] DROP_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME_ZH,PROD_NAME_EN,TOTAL_STOCKS};

    String[] BOX_APP_FETCH_SOURCE = {PROD_ID,PROD_LANG_LIST,PROD_NAME,BRIEF,SHOP_ID,PRICE,PROD_TYPE,ORI_PRICE,ACTIVITY_PRICE,SCORE_PRICE,SOLD_NUM,COMMENT_NUM,POSITIVE_RATING,PIC,IMGS,ACTIVITY_ID,ACTIVITY_ORIGINAL_PRICE,ACTIVITY_START_TIME,SOURCE,MOLD,DAW_NUM,AUTHOR_NAME,IS_RIGHTS,ATTR,LEVEL_ID,AUTHOR_IMG,CHAIN,MAX_NUM,STATUS,CIRCULATION,PUTAWAY_TIME,TOTAL_STOCKS};

    String[] HOT_WORDS = {content};

}

